<%@ Page Language="C#" MasterPageFile="~/AnadoluBazaar.Master" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="OnlineAnadolu.Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 489px; height: 379px">
        <tr>
            <td>
                <asp:Label ID="lb_Name" runat="server" Text="isim:"></asp:Label></td>
            <td align="left" colspan="2">
                <asp:TextBox ID="tb_Name" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tb_Name"
                    ErrorMessage="*" ValidationGroup="kaydetkullanici"></asp:RequiredFieldValidator></td>
            <td align="left" colspan="1">
                </td>
        </tr>
        <tr>
            <td style="height: 147px" colspan="3" valign="top" align="left">
                <asp:UpdatePanel id="UpdatePanel5" runat="server"><contenttemplate>
<BR /><TABLE style="WIDTH: 223px; HEIGHT: 60px"><TBODY><TR><TD style="WIDTH: 187px"><asp:Label id="lb_KullaniciAdi" runat="server" Width="96px" Text="Kullanici Adi:"></asp:Label> </TD><TD><asp:TextBox id="tb_KullaniciAdi" runat="server" AutoPostBack="True" OnTextChanged="tb_KullaniciAdi_TextChanged"></asp:TextBox></TD><TD><asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="tb_KullaniciAdi" ValidationGroup="kaydetkullanici"></asp:RequiredFieldValidator></TD></TR><TR><TD style="WIDTH: 187px; HEIGHT: 21px"></TD><TD style="HEIGHT: 21px"><asp:Label id="lb_KullaniciAdiKontrol" runat="server"></asp:Label></TD><TD style="HEIGHT: 21px"></TD></TR><TR><TD style="HEIGHT: 21px" colSpan=3></TD></TR></TBODY></TABLE>
</contenttemplate>
                </asp:UpdatePanel></td>
            <td align="left" colspan="1" style="height: 147px">
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lb_Email" runat="server" Text="E-Mail"></asp:Label></td>
            <td align="left" colspan="2">
                <asp:UpdatePanel id="UpdatePanel4" runat="server">
                    <contenttemplate>
&nbsp;&nbsp; <TABLE style="WIDTH: 180px"><TBODY><TR><TD><asp:TextBox id="tb_EMail" runat="server" Width="116px" AutoPostBack="True" OnTextChanged="tb_EMail_TextChanged"></asp:TextBox></TD><TD style="WIDTH: 3px"><asp:DropDownList id="ddl_EMAil" runat="server" Width="127px">
                    <asp:ListItem>@anadolu.edu.tr</asp:ListItem>
                </asp:DropDownList></TD><TD style="WIDTH: 3px"><asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="tb_EMail" ValidationGroup="kaydetkullanici"></asp:RequiredFieldValidator></TD></TR><TR><TD colSpan=2><asp:Label id="Label2" runat="server"></asp:Label></TD><TD style="WIDTH: 3px"></TD></TR></TBODY></TABLE>&nbsp; 
</contenttemplate>
                </asp:UpdatePanel></td>
            <td align="left" colspan="1">
            </td>
        </tr>
        <tr>
            <td style="height: 26px">
                <asp:Label ID="lb_Adres" runat="server" Text="Adres:"></asp:Label></td>
            <td align="left" colspan="2" style="height: 26px">
                <asp:TextBox ID="tb_Adres" runat="server" Width="275px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tb_Adres"
                    ErrorMessage="*" ValidationGroup="kaydetkullanici"></asp:RequiredFieldValidator></td>
            <td align="left" colspan="1" style="height: 26px">
                </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lb_Adres2" runat="server" Text="Adres2:"></asp:Label></td>
            <td align="left" colspan="2">
                <asp:TextBox ID="tb_Adres2" runat="server" Height="22px" Width="275px"></asp:TextBox></td>
            <td align="left" colspan="1">
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lb_EvTelefon" runat="server" Text="Ev Telefon:"></asp:Label></td>
            <td align="left" colspan="2">
                <asp:TextBox ID="tb_EvTelefon" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="tb_EvTelefon"
                    ErrorMessage="*" ValidationGroup="kaydetkullanici"></asp:RequiredFieldValidator></td>
            <td align="left" colspan="1">
                </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lb_CepTelefon" runat="server" Text="Cep Telefon:"></asp:Label></td>
            <td align="left" colspan="2">
                <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox7"
                    ErrorMessage="*" ValidationGroup="kaydetkullanici"></asp:RequiredFieldValidator></td>
            <td align="left" colspan="1">
                </td>
        </tr>
        <tr>
            <td style="height: 16px" valign="bottom">
                <asp:Label ID="lb_Fakulte" runat="server" Text="Fakulte:"></asp:Label></td>
            <td align="left" colspan="2" rowspan="2" valign="top">
                &nbsp;<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:DropDownList ID="ddl_Fakulte" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource2"
                            DataTextField="facultyname" DataValueField="facultyid">
                        </asp:DropDownList>
                        <br />
                        <asp:DropDownList ID="ddl_Bolum" runat="server" DataSourceID="SqlDataSource3" DataTextField="departmentname"
                            DataValueField="departmentid">
                        </asp:DropDownList>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <br />
            </td>
            <td align="left" colspan="1" rowspan="2" valign="top">
            </td>
        </tr>
        <tr>
            <td style="height: 9px" valign="top">
                <asp:Label ID="lb_Bolum" runat="server" Text="Bolum:"></asp:Label></td>
        </tr>
        <tr>
            <td valign="bottom">
                <asp:Label ID="lb_Semt" runat="server" Text="Semt:"></asp:Label></td>
            <td align="left" colspan="2" rowspan="2" valign="middle">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
<asp:DropDownList id="ddl_Semt" runat="server" DataValueField="pkid" DataTextField="statename" DataSourceID="SqlDataSource4" AutoPostBack="True"></asp:DropDownList> <BR /><asp:DropDownList id="ddl_Mahalle" runat="server" DataValueField="fkid" DataTextField="localname" DataSourceID="SqlDataSource5">
                        </asp:DropDownList> 
</ContentTemplate>
                    <Triggers>
<asp:AsyncPostBackTrigger ControlID="ddl_Semt"></asp:AsyncPostBackTrigger>
<asp:AsyncPostBackTrigger ControlID="ddl_Mahalle"></asp:AsyncPostBackTrigger>
</Triggers>
                </asp:UpdatePanel>
            </td>
            <td align="left" colspan="1" rowspan="2" valign="middle">
            </td>
        </tr>
        <tr>
            <td valign="top" style="height: 50px">
                <asp:Label ID="lb_Mahalle" runat="server" Text="Mahalle:"></asp:Label></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lb_Cinsiyet" runat="server" Text="Cinsiyet:"></asp:Label></td>
            <td align="left" colspan="2">
                <asp:DropDownList ID="ddl_Cinsiyet" runat="server">
                    <asp:ListItem Selected="True" Value="0">Seciniz</asp:ListItem>
                    <asp:ListItem Value="1">Bay</asp:ListItem>
                    <asp:ListItem Value="2">Bayan</asp:ListItem>
                </asp:DropDownList>
                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="ddl_Cinsiyet"
                    ErrorMessage="*" MaximumValue="2" MinimumValue="1" ValidationGroup="kaydetkullanici"></asp:RangeValidator></td>
            <td align="left" colspan="1">
                </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="left" colspan="2">
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
&nbsp;<asp:Button id="bt_Kaydet" onclick="bt_Kaydet_Click" runat="server" Text="Kaydet" ValidationGroup="kaydetkullanici"></asp:Button> <asp:Label id="Label1" runat="server" Width="155px"></asp:Label> 
</ContentTemplate>
                </asp:UpdatePanel>
                <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel3">
                    <ProgressTemplate>
                        <asp:Image ID="Image1" runat="server" ImageUrl="~/image/25-1.gif" />
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </td>
            <td align="left" colspan="1">
            </td>
        </tr>
    </table>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>"
        SelectCommand="SELECT [facultyid], [facultyname] FROM [faculty]"></asp:SqlDataSource>
    &nbsp;
    <asp:TextBox ID="tb_LastVisit" runat="server" Visible="False"></asp:TextBox>
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>"
        SelectCommand="SELECT [departmentid], [departmentname] FROM [department] WHERE ([facultyid] = @facultyid)">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddl_Fakulte" Name="facultyid" PropertyName="SelectedValue"
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>"
        SelectCommand="SELECT [pkid], [statename] FROM [states]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>"
        SelectCommand="SELECT [fkid], [localname] FROM [locals] WHERE ([pkid] = @pkid)">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddl_Semt" Name="pkid" PropertyName="SelectedValue"
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>"
        >
    </asp:SqlDataSource>
    <asp:GridView ID="GridView2" runat="server" DataSourceID="SqlDataSource6">
    </asp:GridView>
    
</asp:Content>